package com.xiao.xin.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class ChatHistoryMemoryVo {
    private String role;
    private String content;

    public ChatHistoryMemoryVo(String role, String content) {
        if (role.equals("user")) {
            role = "user";
        }else if (role.equals("assistant")) {
            role = "assistant";
        }else {
            role = "";
        }
        this.role = role;
        this.content = content;
    }
}
